import http from '@/utils/httpUtils'

/**
 * @查询部门树
 */
export function getDepartmentTree(query){
    return http('/system/company/departmentTree','get',query)
}

/**
 * @新增部门
 */
export function addDepartment(query){
    return http('/system/company/addDepartment','post',query)
}

/**
 * @部门详情
 */
export function deparmtentInfo(id){
    return http(`/system/company/departmentInfo/${id}`,'get')
}

/**
 * @部门修改
 */
export function updateDepartment(query){
    return http('/system/company/updateDepartment','post',query)
}

/**
 * @部门删除
 */
export function deleteDepartment(id){
    return http(`/system/company/deleteDepartment/${id}`,'delete')
}